package com.mingqijia.gassafety.webserver.service;

import com.mingqijia.gassafety.db.entity.HistoryAlarm;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mingqijia.gassafety.shared.utils.commonUtils.PageUtil;
import com.mingqijia.gassafety.webserver.request.RecordLogRequest;
import com.mingqijia.gassafety.webserver.response.AlertLogResponse;
import com.mingqijia.gassafety.webserver.response.HistoryAlarmAndBrokenResponse;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 报警器设备报警记录 服务类
 * </p>
 *
 * @author wanghai
 * @since 2022-08-08
 */
public interface HistoryAlarmService extends IService<HistoryAlarm> {

    List<HistoryAlarmAndBrokenResponse> getEffectiveData(Integer customerId);

    PageUtil<AlertLogResponse> getAlarmList(RecordLogRequest req);

    Map<String, Integer> getConditionList(Integer isSpecialized);

    HistoryAlarm getImeiLastHistoryAlarm(String spId,String imei,Integer consumerId);

}
